package com.wh.wisdomsite.xbox.utils.properties;

import java.util.ResourceBundle;


/**
 * 读取配置properties文件
 */
public class PropertiesTool_One {

	private static Object lock = new Object();
	private static PropertiesTool_One config  = null;
	private static ResourceBundle rb = null;
	private static final String CONFIG_FILE = "merchantInfo";


    //读取配置文件
	public static PropertiesTool_One getInstance() {
		synchronized(lock) {
			if(null == config) {
				config = new PropertiesTool_One();
			}
		}
		return (config);
	}

    //加载配置文件
    private PropertiesTool_One() {
        rb = ResourceBundle.getBundle(CONFIG_FILE);
    }


    //根据配置文件Key获取Value
	public String getValue(String key) {
		return (rb.getString(key));
	}
}